package com.jueming.cashbook.business.service.impl;

import com.jueming.cashbook.business.mapper.CashBookMapper;
import com.jueming.cashbook.business.service.CashBookService;
import com.jueming.cashbook.entity.CashBook;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CashBookServiceImpl implements CashBookService {

    @Autowired
    private CashBookMapper cashBookMapper;

    @Override
    public List<CashBook> getList() {
        return cashBookMapper.selectList();
    }

    @Override
    public CashBook getById(CashBook cashBook) {
        return cashBookMapper.selectById(cashBook);
    }
}
